import time


def progress_func(name='进度条'):
    # 进度条实现
    for i in range(101):
        progress = "#" * i + " " * (100 - i)
        time.sleep(0.1)
        print('\r\033[1:32m{}\t[{}]{:3d}%'.format(name, progress, i), end='')


if __name__ == '__main__':
    progress_func()
